
[dbo].[BAEOrderCategoryParentLookupGetorderCategoryParentId]
create procedure [dbo].[BAEOrderCategoryParentLookupGetorderCategoryParentId] @oCatID int as
SELECT ocpl.OrderCategoryID, ocpl.OrderCategoryParentID, oc.Title
FROM OrderCategoryParentLookup AS ocpl
INNER JOIN OrderCategory AS oc on oc.OrderCategoryID = ocpl.OrderCategoryID
WHERE ocpl.OrderCategoryID = @oCatID;
GO